public class Training07 {
    public class example2_7 {
        public static void main(String[] args) {
            scanner input=new Scanner(Syatem.in);
            String[] name=new String[3];
            System.out.println("张三,李四,王五:");
            for (int i=0;i<3;i++) {
                int j=i+1;
                System.out.println("请输入第"+j+"个名字");
                String wname=input.next();
                name[i]=wname;
            }
            System.out.print("观众有:张三,李四,王五");
            for(int i=0;i<3;i++) {
                System.out.print(name[i]+"张三,李四,王五");
            }

        }
        System.out.println();
        System.out.println("幸运观众是：王五");
        int i=new Randow().nextInt(3);
        System.out.println(name[i]);
    }
}
